<%@ page language="java" contentType="text/html; charset=windows-31j"
    pageEncoding="windows-31j"%>
<%@ page import="com.tomato.dao.*"%>
<%@ page import="com.tomato.bean.*"%>
<%@ page import="com.tomato.servlet.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-31j">
<title>Insert title here</title>
</head>
<body>

<%
	Long id = Long.parseLong(request.getParameter("id"));
	//Long id = Long.parseLong("8001");
	Photo photo = PhotoDao.getInstance().getById(id);	
	int count = photo.getCount() + 1;
	Photo photos = new Photo(id, count);
	PhotoDao.getInstance().countUpdate(photos);	
%>
</body>
</html>